#include <stdio.h>
main()
{
    int year=0;
    scanf("%d",&year);
    if (year % 4 == 0 && year % 100 !=0)
        printf ("闰年\n");
    else if (year % 400 == 0)
        printf ("闰年\n");
    else 
        printf("非闰年\n");
        return 0;/*
    if a%4==0&&a%100!
    else if */
}